package net.zjitc.demo1.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
public class helloController {
    @Value("${zjitc.url}")
    private String url;
    @GetMapping("/hello")
    public String hello() {
        System.out.println("url: " + url);
        return "hello";
    }
}
